import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'



// 代收付协议录入
export function agentPayInOutSignEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutSignEntry/save`,
    method: 'post',
    data:data
  })
}



//代收付协议审核查询
export const apiUrlConfigApprove = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutApprove/search`,
}

// 代收付协议审核明细
export function AgentPayInOutApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutApprove/detail`,
    method: 'get',
    params: { id:data.id }
  })
}

// 代收付协议审核通过
export function AgentPayInOutApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutApprove/approve`,
    method: 'post',
    data: data
  })
}


// 代收付协议审核拒绝
export function AgentPayInOutApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutApprove/reject`,
    method: 'post',
    data: data
  })
}



//代收付协议修改查询
export const apiUrlConfigModify = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutModify/search`,
}


// 代收付协议修改明细
export function AgentPayInOutModifyDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutModify/detail`,
    method: 'get',
    params: { id:data.id }
  })
}

// 代收付协议修改保存
export function AgentPayInOutModifySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutModify/save`,
    method: 'post',
    data: data
  })
}


// 代收付协议修改删除
export function AgentPayInOutModifyDelete(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutModify/delete`,
    method: 'post',
    data: data
  })
}




//代收付协议撤销查询
export const apiUrlConfigUndo = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutUndo/search`,
}


// 代收付协议撤销明细
export function AgentPayInOutUndoDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutUndo/detail`,
    method: 'get',
    params: {id:data.id}
  })
}

// 代收付协议撤销保存
export function AgentPayInOutUndoSave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutUndo/save`,
    method: 'post',
    data: data
  })
}


//代收付协议撤销审核查询
export const apiUrlConfigUndoApprove = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutUndoApprove/search`,
}


// 代收付协议撤销审核明细
export function AgentPayInOutUndoApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutUndoApprove/detail`,
    method: 'get',
    params: {id:data.id}
  })
}

// 代收付协议撤销审通过
export function AgentPayInOutUndoApproveSave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutUndoApprove/save`,
    method: 'post',
    data: data
  })
}

// 代收付协议撤销审通过
export function AgentPayInOutUndoApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutUndoApprove/reject`,
    method: 'post',
    data: data
  })
}


// 代收付协议中心状态查询提交
export function AgentPayInOutStatusQuerySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutStatusQuery/save`,
    method: 'post',
    data: data
  })
}


//代收付协议查询
export const apiUrlConfigProtocolQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutProtocolQuery/search`,
}

// 代收付协议查询明细
export function AgentPayInOutProtocolQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutProtocolQuery/detail`,
    method: 'get',
    params: {id:data.id}
  })
}


//代收付协议管理通知查询
export const apiUrlConfigPtlMgtNotiQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutPtlMgtNotiQuery/search`,
}

// 代收付协议管理通知查询明细
export function AgentPayInOutPtlMgtNotiQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/agentPayInOutProtocolMgt/AgentPayInOutPtlMgtNotiQuery/detail`,
    method: 'get',
    params: {id: data.id,listId :data.listId,proto:data.proto,payerActno:data.payerActno,
      payerName:data.payerName,payeeName:data.payeeName}
  })
}
